package com.itheima.feign;

import com.itheima.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user")
public interface UserFeign {

    /***
     * 根据ID查询数据
     * @param phone
     * @return
     */
    @GetMapping("/user/{phone}")
    public Result findById(@PathVariable("phone") Integer phone);

}
